@using BootBlazor.Web.Components.Layout
@using BootBlazor.Web.Components.Shared

<CascadingAuthenticationState>
	<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="AdditionalAssemblies">
		<Found Context="routeData">
			<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
				<NotAuthorized>
					<Loading />
				</NotAuthorized>
			</AuthorizeRouteView>
			<FocusOnNavigate RouteData="@routeData" Selector="h1" />
		</Found>
		<NotFound>
			<LayoutView Layout="@typeof(EmptyLayout)">
				<NotFoundPage />
			</LayoutView>
		</NotFound>
	</Router>
</CascadingAuthenticationState>
